Mobileurl function in include/global.func.php 858 lineA total of four parameters, moduleid-model id,catid-Classification Id,itemid-Article id,page-pagefunctionMobileurl ($moduleid,$catid= 0,$itemid= 0,$page= 1) {if(Re_write)return $moduleid.‘
Phpcmsv9 is a common method of tag. Phpcmsv9 template to create a set of common code 1. the length of the call title {str_cut ($ r [title], 36,)} is intercepted, and the quotation marks are used to remove .... 2. formatting time call formatting Time
1. Intercept Call Header length
{Str_cut ($r [title],36, ']}
2. Format Time
Call format Time 2011-05-06 11:22:33
{Date (' y-m-d h:i:s ', $r [Inputtime])}
3. Multi-column Call & Multi-recommendation bit call
Call Requirements: The article range is 59
This article describes the instructions for using template labels in phpcms v9. {Template "content", "header"} calls the root directory under the Phpcms\template\content\header file {CHARSET} character set (GBK or Utf-8) {if isset ($SEO [' title '])
First set up the classification information table:1 CREATE TABLE IF not EXISTS' Category ' (2' CategoryId 'smallint(5) unsigned not NULLAuto_increment,3' ParentID 'smallint(5) unsigned not NULL DEFAULT '0',4' CategoryName 'varchar( -) not NULL,5
Phpcms v9 template making common code collection
1. Intercept Call title length
{Str_cut ($r [title],36, ')}, followed by quotation marks to remove ....
2. Format time
Call format Time 2011-05-06 11:22:33
{Date (' y-m-d h:i:s ', $r [Inputtime])}
Phpcmsv9 template tag tips, common methods of tag phpcmsv9 template production common code set 1. the length of the call title {str_cut ($ r [title], 36, '')} is intercepted, and the quotation marks are used to remove .... 2. & #26684; normalization
Phpcms V9 templates
1. Extract the call title Length
{Str_cut ($ R [title], 36, '')}, which is enclosed in quotation marks to remove ....
2. Format time
Call formatting time 11:22:33
{Date ('Y-m-d h: I: s', $ R [inputtime])}
3. Multi-topic call &
PHPCMS provides a lot of labels to facilitate data calling. However, in secondary development, you sometimes have to write your own PHPCMS labels, but the pages cannot be displayed when pages are displayed, I will introduce the correct solution for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.